package legalsystem.main;

import legalsystem.model.User;

import org.hibernate.Session;

public class TestUser {
	public static void main(String[] args) {
		Session session = SessionFactoryUtil.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		User user = new User();
		user.setLogin("user");
		user.setPassword("user");
		session.save(user);
		session.getTransaction().commit();
	}
}
